from PIL import Image
import cv2
import numpy as np

from PIL import ImageGrab

im0 =ImageGrab.grab((300, 100, 1400, 600))
im0.show()

im0.convert("P")
print (str(im0.mode))